import 'package:flutter/material.dart';

class Home extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("Flutter动画例子Demo"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("基础用法"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base');
              },
            ),

            RaisedButton(
              child: Text("循环动画"),
              onPressed: (){
                Navigator.of(context).pushNamed('/circle');
              },
            ),

            RaisedButton(
              child: Text("交织动画"),
              onPressed: () {
                Navigator.of(context).pushNamed('/stagger');
              },
            ),

            RaisedButton(
              child: Text("动画组件"),
              onPressed: (){
                Navigator.of(context).pushNamed('/animated');
              },
            ),

            RaisedButton(
              child: Text("过渡动画"),
              onPressed: (){
                Navigator.of(context).pushNamed('/push');
              },
            ),

            RaisedButton(
              child: Text("飞行动画"),
              onPressed: (){
                Navigator.of(context).pushNamed('/hero');
              },
            ),
          ],
        ),
      ),

    );
  }
}